<!DOCTYPE html>
<html>
<head>
	<script src="../promise.js"></script>
</head>
<body>
	<script>
        new Promise(function(resolve){
            console.log("new Promise1")
            resolve(new Promise(function(resolve){
                console.log("new Promise2")
                resolve("hello");
            }));
        }).then(function(result){
            console.log("result:" + result);
        })
	</script>
</body>
</html>